package org.eclipse.football;

import static org.junit.Assert.*;

import org.junit.Test;

public class CalculateDefPoints {

	@Test
	public void test() {
		// Instantiate a defensive player
		DefPlayer player = new DefPlayer("test", "");
		
		// Add stats to this player
		player.setDef_tds(1);
		player.setPicks(2);
		player.setFumbles(1);
		player.setSacks(3);
		player.setBlocks(1);
		player.setSafeties(1);
		player.setPa(21);
		player.setYa(400);
		
		// Make sure this players points are correct
		assertTrue(!(player.calculatePoints() != 16));
//		if(player.calculatePoints() != 16){
//			// If not then fail and print out number of points calculated
////			String points = String.format("%d", player.calculatePoints());
//			fail("Defensive Player's points were calculated as "+String.format("%d", player.calculatePoints())+" when they should be 16\n");
//		}
	}

}
